package com.qigao.mall.jdbc.mapper;

import com.qigao.mall.commons.dto.SysRoleResourceCondDto;
import com.qigao.mall.jdbc.model.SysRoleResource;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleResourceMapper extends  AbstractSysRoleResourceMapper{
    void deleteInBatch(List<SysRoleResource> sysRoleResourceArrayList);

    SysRoleResource selectByIndex(@Param("roleCode") String roleCode, @Param("resourceNo") String resourceNo);

    void deleteByRoleCode(String roleCode);

    void insertBatch(List<SysRoleResource> sysRoleResourceList);

    List<SysRoleResource> selectByRoleCode(String roleCode);

    List<SysRoleResource> selectList(SysRoleResourceCondDto sysRoleResourceCondDto);

    List<SysRoleResource> selectByUserNo(String userNo);

}